package secondkill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import secondkill.pojo.TOrder;
import secondkill.pojo.TUser;
import secondkill.vo.GoodsVo;
import secondkill.vo.OrderDetailVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Dzy
 * @since 2022-01-19
 */
public interface ITOrderService extends IService<TOrder> {
    /**
     * 秒杀订单
     * @param user
     * @param goods
     * @return secondkill.pojo.TOrder
     * @create 2022/1/20 21:56
     */
    TOrder secKill(TUser user, GoodsVo goods);

    boolean checkCaptcha(TUser user, Long goodId, String captcha);

    String createPath(TUser user, Long goodId);

    boolean checkPath(TUser user, Long goodId, String path);

    OrderDetailVo detail(Long orderId);
}
